Application abstraction with dialog purpose

ABSTRACT

Controls are provided for a web server to generate client side markups that include recognition and/or audible prompting. The controls comprise elements of a dialog such as a question, answer, confirmation, command or statement. A module forms a dialog by making use of the information carried in the controls.

BACKGROUND OF THE INVENTION

[0001] The present invention generally relates to encoding computers to perform a specific application. More particularly, the present invention relates to controls for defining an application to perform recognition and/or audible prompting such as a server that generates client side markup enabled with recognition and/or audible prompting.

[0002] Small computing devices such as personal digital assistants (PDA), devices and portable phones are used with ever increasing frequency by people in their day-to-day activities. With the increase in processing power now available for microprocessors used to run these devices, the functionality of these devices are increasing, and in some cases, merging. For instance, many portable phones now can be used to access and browse the Internet as well as can be used to store personal information such as addresses, phone numbers and the like.

[0003] In view that these computing devices are being used for browsing the Internet, or are used in other server/client architectures, it is therefore necessary to enter information into the computing device. Unfortunately, due to the desire to keep these devices as small as possible in order that they are easily carried, conventional keyboards having all the letters of the alphabet as isolated buttons are usually not possible due to the limited surface area available on the housings of the computing devices.

[0004] To address this problem, there has been increased interest and adoption of using voice or speech to access information over a wide area network such as the Internet. For example, voice portals such as through the use of VoiceXML (voice extensible markup language) have been advanced to allow Internet content to be accessed using only a telephone. In this architecture, a document server (for example, a web server) processes requests from a client through a VoiceXML interpreter. The web server can produce VoiceXML documents in reply, which are processed by the VoiceXML interpreter and rendered audibly to the user. Using voice commands through voice recognition, the user can navigate the web.

[0005] Generally, there are two techniques of “speech enabling” information or web content. In the first technique, existing visual markup language pages typically visually rendered by a device having a display are interpreted and rendered aurally. However, this approach often yields poor results because pages meant for visual interaction usually do not have enough information to create a sensible aural dialog automatically. In addition, voice interaction is prone to error, especially over noisy channels such as a telephone. Without visual or other forms of persistent feedback, navigation through the web server application can be extremely difficult for the user. This approach thus requires mechanisms such as help messages, which are also rendered audibly to the user in order to help them navigate through the website. The mechanisms are commonly referred to as “voice dialogs”, which also must address errors when incorrect information or no information is provided by the user, for example, in response to an audible question. Since the mechanisms are not commonly based on the visual content of the web page, they cannot be generated automatically, and therefore typically require extensive development time by the application developer.

[0006] A second approach to speech enabling web content, includes writing specific voice pages in a new language. An advantage of this approach is that the speech-enabled page contains all the mechanisms needed for aural dialog such as repairs and navigational help. However, a significant disadvantage is that the application pages must then be adapted to include the application logic as found in the visual content pages. In other words, the application logic of the visual content pages must be rewritten in the form of the speech-enable language. Even when this process can be automated by the use of tools creating visual and aural pages from the same specification, maintenance of the visual and speech enabled pages is usually difficult to synchronize. In addition, this approach does not easily allow multimodal applications, for example where both visual and speech interaction is provided on the web page. Since the visual and speech-enabled pages are unrelated, the input and output logic is not easily coordinated to work with each other.

[0007] To date, speech interaction is also cumbersome due to the organization or format currently used as the interface. Generally, the speech interface either tends to be tied too closely to the business logic of the application, which inhibits re-use of the elements of the speech interface in other applications, or the speech interface is too restricted by a simplistic dialog model (e.g. forms and fields).

[0008] There is thus an ongoing need to improve upon the architecture and methods used to provide speech recognition in an application such as server/client architecture such as the Internet. In particular, a method, system or authoring tool that addresses one, several or all of the foregoing disadvantages and thus provides generation of speech-enabled recognition and/or speech-enabled prompting in an application is needed.

SUMMARY OF THE INVENTION

[0009] Controls are provided for a web server to generate client side markups that include recognition and/or audible prompting. The controls comprise elements of a dialog such as a question, answer, confirmation, command or statement. A module forms a dialog by making use of the information carried in the controls.

[0010] Each of the controls perform a role in the dialog. For instance, a statement control is used to generate corresponding markup for the client device to present information to the user, while a question control generates markups for the client device to ask a question. An answer control generates markup for the client device so that a grammar used for recognition is associated with an input field related to a question that has been asked. If it is unclear whether or not a recognized result is correct, a confirmation control can be activated and generate markup to confirm a recognized result. A command control generates markup that allows the user to provide commands, which are other than the expected answers to a specific question, and thus, allows the user to navigate through the web server application, for example. Each of the controls includes an attribute to indicate whether the associated control is available for activation. A module, when executed such as on a client, creates a dialog to solicit and provide information as a function of which controls are activated.

BRIEF DESCRIPTION OF THE DRAWINGS

[0011]FIG. 1 is a plan view of a first embodiment of a computing device operating environment.

[0012]FIG. 2 is a block diagram of the computing device of FIG. 1.

[0013]FIG. 3 is a block diagram of a general purpose computer.

[0014]FIG. 4 is a block diagram of an architecture for a client/server system.

[0015]FIG. 5 is a display for obtaining credit card information.

[0016]FIG. 6 is an exemplary page of mark-up language executable on a client having a display and voice recognition capabilities.

[0017] FIGS. 7 is a block diagram illustrating a first approach for providing recognition and audible prompting in client side markups.

[0018]FIG. 8 is a block diagram illustrating a second approach for providing recognition and audible prompting in client side markups.

[0019]FIG. 9 is a block diagram illustrating a third approach for providing recognition and audible prompting in client side markups.

[0020]FIG. 10 is a block diagram illustrating companion controls.

[0021]FIG. 11 is a detailed block diagram illustrating companion controls.

DETAILED DESCRIPTION OF THE ILLUSTRATIVE EMBODIMENTS

[0022] Before describing architecture of web based recognition and methods for implementing the same, it may be useful to describe generally computing devices that can function in the architecture. Referring now to FIG. 1, an exemplary form of a data management device (PIM, PDA or the like) is illustrated at 30. However, it is contemplated that the present invention can also be practiced using other computing devices discussed below, and in particular, those computing devices having limited surface areas for input buttons or the like. For example, phones and/or data management devices will also benefit from the present invention. Such devices will have an enhanced utility compared to existing portable personal information management devices and other portable electronic devices, and the functions and compact size of such devices will more likely encourage the user to carry the device at all times. Accordingly, it is not intended that the scope of the architecture herein described be limited by the disclosure of an exemplary data management or PIM device, phone or computer herein illustrated.

[0023] An exemplary form of a data management mobile device 30 is illustrated in FIG. 1. The mobile device 30 includes a housing 32 and has an user interface including a display 34, which uses a contact sensitive display screen in conjunction with a stylus 33. The stylus 33 is used to press or contact the display 34 at designated coordinates to select a field, to selectively move a starting position of a cursor, or to otherwise provide command information such as through gestures or handwriting. Alternatively, or in addition, one or more buttons 35 can be included on the device 30 for navigation. In addition, other input mechanisms such as rotatable wheels, rollers or the like can also be provided. However, it should be noted that the invention is not intended to be limited by these forms of input mechanisms. For instance, another form of input can include a visual input such as through computer vision.

[0024] Referring now to FIG. 2, a block diagram illustrates the functional components comprising the mobile device 30. A central processing unit (CPU) 50 implements the software control functions. CPU 50 is coupled to display 34 so that text and graphic icons generated in accordance with the controlling software appear on the display 34. A speaker 43 can be coupled to CPU 50 typically with a digital-to-analog converter 59 to provide an audible output. Data that is downloaded or entered by the user into the mobile device 30 is stored in a non-volatile read/write random access memory store 54 bi-directionally coupled to the CPU 50. Random access memory (RAM) 54 provides volatile storage for instructions that are executed by CPU 50, and storage for temporary data, such as register values. Default values for configuration options and other variables are stored in a read only memory (ROM) 58. ROM 58 can also be used to store the operating system software for the device that controls the basic functionality of the mobile 30 and other operating system kernel functions (e.g., the loading of software components into RAM 54).

[0025] RAM 54 also serves as a storage for the code in the manner analogous to the function of a hard drive on a PC that is used to store application programs. It should be noted that although non-volatile memory is used for storing the code, it alternatively can be stored in volatile memory that is not used for execution of the code.

[0026] Wireless signals can be transmitted/received by the mobile device through a wireless transceiver 52, which is coupled to CPU 50. An optional communication interface 60 can also be provided for downloading data directly from a computer (e.g., desktop computer), or from a wired network, if desired. Accordingly, interface 60 can comprise various forms of communication devices, for example, an infrared link, modem, a network card, or the like.

[0027] Mobile device 30 includes a microphone 29, and analog-to-digital (A/D) converter 37, and an optional recognition program (speech, DTMF, handwriting, gesture or computer vision) stored in store 54. By way of example, in response to audible information, instructions or commands from a user of device 30, microphone 29 provides speech signals, which are digitized by A/D converter 37. The speech recognition program can perform normalization and/or feature extraction functions on the digitized speech signals to obtain intermediate speech recognition results. Using wireless transceiver 52 or communication interface 60, speech data is transmitted to a remote recognition server 204 discussed below and illustrated in the architecture of FIG. 5. Recognition results are then returned to mobile device 30 for rendering (e.g. visual and/or audible) thereon, and eventual transmission to a web server 202 (FIG. 5), wherein the web server 202 and mobile device 30 operate in a client/server relationship. Similar processing can be used for other forms of input. For example, handwriting input can be digitized with or without pre-processing on device 30. Like the speech data, this form of input can be transmitted to the recognition server 204 for recognition wherein the recognition results are returned to at least one of the device 30 and/or web server 202. Likewise, DTMF data, gesture data and visual data can be processed similarly. Depending on the form of input, device 30 (and the other forms of clients discussed below) would include necessary hardware such as a camera for visual input.

[0028] In addition to the portable or mobile computing devices described above, it should also be understood that the present invention can be used with numerous other computing devices such as a general desktop computer. For instance, the present invention will allow a user with limited physical abilities to input or enter text into a computer or other computing device when other conventional input devices, such as a full alpha-numeric keyboard, are too difficult to operate.

[0029] The invention is also operational with numerous other general purpose or special purpose computing systems, environments or configurations. Examples of well known computing systems, environments, and/or configurations that may be suitable for use with the invention include, but are not limited to, wireless or cellular telephones, regular telephones (without any screen), personal computers, server computers, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.

[0030] The following is a brief description of a general purpose computer 120 illustrated in FIG. 3. However, the computer 120 is again only one example of a suitable computing environment and is not intended to suggest any limitation as to the scope of use or functionality of the invention. Neither should the computer 120 be interpreted as having any dependency or requirement relating to any one or combination of components illustrated therein.

[0031] The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices. Tasks performed by the programs and modules are described below and with the aid of figures. Those skilled in the art can implement the description and figures as processor executable instructions, which can be written on any form of a computer readable medium.

[0032] With reference to FIG. 3, components of computer 120 may include, but are not limited to, a processing unit 140, a system memory 150, and a system bus 141 that couples various system components including the system memory to the processing unit 140. The system bus 141 may be any of several types of bus structures including a memory bus or memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Universal Serial Bus (USB), Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus also known as Mezzanine bus. Computer 120 typically includes a variety of computer readable mediums. Computer readable mediums can be any available media that can be accessed by computer 120 and includes both volatile and nonvolatile media, removable and non-removable media. By way of example, and not limitation, computer readable mediums may comprise computer storage media and communication media. Computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by computer 120.

[0033] Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, FR, infrared and other wireless media. Combinations of any of the above should also be included within the scope of computer readable media.

[0034] The system memory 150 includes computer storage media in the form of volatile and/or nonvolatile memory such as read only memory (ROM) 151 and random access memory (RAM) 152. A basic input/output system 153 (BIOS), containing the basic routines that help to transfer information between elements within computer 120, such as during start-up, is typically stored in ROM 151. RAM 152 typically contains data and/or program modules that are immediately accessible to and/or presently being operated on by processing unit 140. By way of example, and not limitation, FIG. 3 illustrates operating system 54, application programs 155, other program modules 156, and program data 157.

[0035] The computer 120 may also include other removable/non-removable volatile/nonvolatile computer storage media. By way of example only, FIG. 3 illustrates a hard disk drive 161 that reads from or writes to non-removable, nonvolatile magnetic media, a magnetic disk drive 171 that reads from or writes to a removable, nonvolatile magnetic disk 172, and an optical disk drive 175 that reads from or writes to a removable, nonvolatile optical disk 176 such as a CD ROM or other optical media. Other removable/non-removable, volatile/nonvolatile computer storage media that can be used in the exemplary operating environment include, but are not limited to, magnetic tape cassettes, flash memory cards, digital versatile disks, digital video tape, solid state RAM, solid state ROM, and the like. The hard disk drive 161 is typically connected to the system bus 141 through a non-removable memory interface such as interface 160, and magnetic disk drive 171 and optical disk drive 175 are typically connected to the system bus 141 by a removable memory interface, such as interface 170.

[0036] The drives and their associated computer storage media discussed above and illustrated in FIG. 3, provide storage of computer readable instructions, data structures, program modules and other data for the computer 120. In FIG. 3, for example, hard disk drive 161 is illustrated as storing operating system 164, application programs 165, other program modules 166, and program data 167. Note that these components can either be the same as or different from operating system 154, application programs 155, other program modules 156, and program data 157. Operating system 164, application programs 165, other program modules 166, and program data 167 are given different numbers here to illustrate that, at a minimum, they are different copies.

[0037] A user may enter commands and information into the computer 120 through input devices such as a keyboard 182, a microphone 183, and a pointing device 181, such as a mouse, trackball or touch pad. Other input devices (not shown) may include a joystick, game pad, satellite dish, scanner, or the like. These and other input devices are often connected to the processing unit 140 through a user input interface 180 that is coupled to the system bus, but may be connected by other interface and bus structures, such as a parallel port, game port or a universal serial bus (USB). A monitor 184 or other type of display device is also connected to the system bus 141 via an interface, such as a video interface 185. In addition to the monitor, computers may also include other peripheral output devices such as speakers 187 and printer 186, which may be connected through an output peripheral interface 188.

[0038] The computer 120 may operate in a networked environment using logical connections to one or more remote computers, such as a remote computer 194. The remote computer 194 may be a personal computer, a hand-held device, a server, a router, a network PC, a peer device or other common network node, and typically includes many or all of the elements described above relative to the computer 120. The logical connections depicted in FIG. 3 include a local area network (LAN) 191 and a wide area network (WAN) 193, but may also include other networks. Such networking environments are commonplace in offices, enterprise-wide computer networks, intranets and the Internet.

[0039] When used in a LAN networking environment, the computer 120 is connected to the LAN 191 through a network interface or adapter 190. When used in a WAN networking environment, the computer 120 typically includes a modem 192 or other means for establishing communications over the WAN 193, such as the Internet. The modem 192, which may be internal or external, may be connected to the system bus 141 via the user input interface 180, or other appropriate mechanism. In a networked environment, program modules depicted relative to the computer 120, or portions thereof, may be stored in the remote memory storage device. By way of example, and not limitation, FIG. 3 illustrates remote application programs 195 as residing on remote computer 194. It will be appreciated that the network connections shown are exemplary and other means of establishing a communications link between the computers may be used.

Exemplary Architecture

[0040]FIG. 4 illustrates architecture 200 for web based recognition as can be used with the present invention. Generally, information stored in a web server 202 can be accessed through mobile device 30 (which herein also represents other forms of computing devices having a display screen, a microphone, a camera, a touch sensitive panel, etc., as required based on the form of input), or through phone 80 wherein information is requested audibly or through tones generated by phone 80 in response to keys depressed and wherein information from web server 202 is provided only audibly back to the user.

[0041] In this exemplary embodiment, Architecture 200 is unified in that whether information is obtained through device 30 or phone 80 using speech recognition, a single recognition server 204 can support either mode of operation. In addition, architecture 200 operates using an extension of well-known markup languages (e.g. HTML, XHTML, cHTML, XML, WML, and the like). Thus, information stored on web server 202 can also be accessed using well-known GUI methods found in these markup languages. By using an extension of well-known markup languages, authoring on the web server 202 is easier, and legacy applications currently existing can be also easily modified to include voice or other forms of recognition.

[0042] Generally, device 30 executes HTML+scripts, or the like, provided by web server 202. When voice recognition is required, by way of example, speech data, which can be digitized audio signals or speech features wherein the audio signals have been preprocessed by device 30 as discussed above, are provided to recognition server 204 with an indication of a grammar or language model to use during speech recognition. The implementation of the recognition server 204 can take many forms, one of which is illustrated, but generally includes a recognizer 211. The results of recognition are provided back to device 30 for local rendering if desired or appropriate. Upon compilation of information through recognition and any graphical user interface if used, device 30 sends the information to web server 202 for further processing and receipt of further HTML scripts, if necessary.

[0043] As illustrated in FIG. 4, device 30, web server 202 and recognition server 204 are commonly connected, and separately addressable, through a network 205, herein a wide area network such as the Internet. It therefore is not necessary that any of these devices be physically located adjacent to each other. In particular, it is not necessary that web server 202 includes recognition server 204. In this manner, authoring at web server 202 can be focused on the application to which it is intended without the authors needing to know the intricacies of recognition server 204. Rather, recognition server 204 can be independently designed and connected to the network 205, and thereby, be updated and improved without further changes required at web server 202. As discussed below, web server 202 can also include an authoring mechanism that can dynamically generate client-side markups and scripts. In a further embodiment, the web server 202, recognition server 204 and client 30 may be combined depending on the capabilities of the implementing machines. For instance, if the client comprises a general purpose computer, e.g. a personal computer, the client may include the recognition server 204. Likewise, if desired, the web server 202 and recognition server 204 can be incorporated into a single machine.

[0044] Access to web server 202 through phone 80 includes connection of phone 80 to a wired or wireless telephone network 208, that in turn, connects phone 80 to a third party gateway 210. Gateway 210 connects phone 80 to a telephony voice browser 212. Telephone voice browser 212 includes a media server 214 that provides a telephony interface and a voice browser 216. Like device 30, telephony voice browser 212 receives HTML scripts or the like from web server 202. In one embodiment, the HTML scripts are of the form similar to HTML scripts provided to device 30. In this manner, web server 202 need not support device 30 and phone 80 separately, or even support standard GUI clients separately. Rather, a common markup language can be used. In addition, like device 30, voice recognition from audible signals transmitted by phone 80 are provided from voice browser 216 to recognition server 204, either through the network 205, or through a dedicated line 207, for example, using TCP/IP. Web server 202, recognition server 204 and telephone voice browser 212 can be embodied in any suitable computing environment such as the general purpose desktop computer illustrated in FIG. 3.

[0045] However, it should be noted that if DTMF recognition is employed, this form of recognition would generally be performed at the media server 214, rather than at the recognition server 204. In other words, the DTMF grammar would be used by the media server 214.

[0046] Referring back to FIG. 4, web server 202 can include a server side plug-in authoring tool or module 209 (e.g. ASP, ASP+, ASP.Net by Microsoft Corporation, JSP, Javabeans, or the like). Server side plug-in module 209 can dynamically generate client-side markups and even a specific form of markup for the type of client accessing the web server 202. The client information can be provided to the web server 202 upon initial establishment of the client/server relationship, or the web server 202 can include modules or routines to detect the capabilities of the client device. In this manner, server side plug-in module 209 can generate a client side markup for each of the voice recognition scenarios, i.e. voice only through phone 80 or multimodal for device 30. By using a consistent client side model, application authoring for many different clients is significantly easier.

[0047] In addition to dynamically generating client side markups, high-level dialog modules, discussed below, can be implemented as a server-side control stored in store 211 for use by developers in application authoring. In general, the high-level dialog modules 211 would generate dynamically client-side markup and script in both voice-only and multimodal scenarios based on parameters specified by developers. The high-level dialog modules 211 can include parameters to generate client-side markups to fit the developers' needs.

Exemplary Client Side Extensions

[0048] Before describing dynamic generation of client-side markups to which the present invention is directed, it may be helpful to first discuss an exemplary form of extensions to the markup language for use in web based recognition.

[0049] As indicated above, the markup languages such as HTML, XHTML cHTML, XML, WML or any other SGML-derived markup, which are used for interaction between the web server 202 and the client device 30, are extended to include controls and/or objects that provide recognition in a client/server architecture. Generally, controls and/or objects can include one or more of the following functions: recognizer controls and/or objects for recognizer configuration, recognizer execution and/or post-processing; synthesizer controls and/or objects for synthesizer configuration and prompt playing; grammar controls and/or objects for specifying input grammar resources; and/or binding controls and/or objects for processing recognition results. The extensions are designed to be a lightweight markup layer, which adds the power of an audible, visual, handwriting, etc. interface to existing markup languages. As such, the extensions can remain independent of: the high-level page in which they are contained, e.g. HTML; the low-level formats which the extensions used to refer to linguistic resources, e.g. the text-to-speech and grammar formats; and the individual properties of the recognition and speech synthesis platforms used in the recognition server 204. Although speech recognition will be discussed below, it should be understood that the techniques, tags and server side controls described hereinafter can be similarly applied in handwriting recognition, gesture recognition and image recognition.

[0050] In the exemplary embodiment, the extensions (also commonly known as “tags”) are a small set of XML elements, with associated attributes and DOM object properties, events and methods, which may be used in conjunction with a source markup document to apply a recognition and/or audible prompting interface, DTMF or call control to a source page. The extensions' formalities and semantics are independent of the nature of the source document, so the extensions can be used equally effectively within HTML, XHTML, cHTML, XML, WML, or with any other SGML-derived markup. The extensions follow the document object model wherein new functional objects or elements, which can be hierarchical, are provided. Each of the elements are discussed in detail in the Appendix, but generally the elements can include attributes, properties, methods, events and/or other “child” elements.

[0051] At this point, it should also be noted that the extensions may be interpreted in two different “modes” according to the capabilities of the device upon which the browser is being executed on. In a first mode, “object mode”, the full capabilities are available. The programmatic manipulation of the extensions by an application is performed by whatever mechanisms are enabled by the browser on the device, e.g. a JScript interpreter in an XHTML browser, or a WMLScript interpreter in a WML browser. For this reason, only a small set of core properties and methods of the extensions need to be defined, and these manipulated by whatever programmatic mechanisms exist on the device or client side. The object mode provides eventing and scripting and can offer greater functionality to give the dialog author a much finer client-side control over speech interactions. As used herein, a browser that supports full event and scripting is called an “uplevel browser”. This form of a browser will support all the attributes, properties, methods and events of the extensions. Uplevel browsers are commonly found on devices with greater processing capabilities.

[0052] The extensions can also be supported in a “declarative mode”. As used herein, a browser operating in a declarative mode is called a “downlevel browser” and does not support full eventing and scripting capabilities. Rather, this form of browser will support the declarative aspects of a given extension (i.e. the core element and attributes), but not all the DOM (document object model) object properties, methods and events. This mode employs exclusively declarative syntax, and may further be used in conjunction with declarative multimedia synchronization and coordination mechanisms (synchronized markup language) such as SMIL (Synchronized Multimedia Integration Language) 2.0. Downlevel browsers will typically be found on devices with limited processing capabilities.

[0053] At this point though, a particular mode of entry should be discussed. In particular, use of speech recognition in conjunction with at least a display and, in a further embodiment, a pointing device as well which enables the coordination of multiple modes of input, e.g. to indicate the fields for data entry, is particularly useful. Specifically, in this mode of data entry, the user is generally able to coordinate the actions of the pointing device with the speech input, so for example the user is under control of when to select a field and provide corresponding information relevant to the field. For instance, a credit card submission graphical user interface (GUI) is illustrated in FIG. 5, a user could first decide to enter the credit card number in field 252 and then enter the type of credit card in field 250 followed by the expiration date in field 254. Likewise, the user could return back to field 252 and correct an errant entry, if desired. When combined with speech recognition, an easy and natural form of navigation is provided. As used herein, this form of entry using both a screen display allowing free form actions of the pointing device on the screen, e.g. the selection of fields and recognition is called “multimodal”.

[0054] Referring to FIG. 6, a HTML markup language code is illustrated. The HTML code includes a body portion 270 and a script portion 272. Entry of information in each of the fields 250, 252 and 254 is controlled or executed by code portions 280, 282 and 284, respectively. Referring first to code portion 280, on selection of field 250, for example, by use of stylus 33 of device 30, the event “onClick” is initiated which calls or executes function “talk” in script portion 272. This action activates a grammar used for speech recognition that is associated with the type of data generally expected in field 250. This type of interaction, which involves more than one technique of input (e.g. voice and pen-click/roller) is referred as “multimodal”.

[0055] Referring now back to the grammar, the grammar is a syntactic grammar such as but not limited to a context-free grammar, a N-grammar or a hybrid grammar. (Of course, DTMF grammars, handwriting grammars, gesture grammars and image grammars would be used when corresponding forms of recognition are employed. As used herein, a “grammar” includes information for performing recognition, and in a further embodiment, information corresponding to expected input to be entered, for example, in a specific field.) A control 290 (herein identified as “reco”) includes various elements, two of which are illustrated, namely a grammar element “grammar” and a “bind” element. Generally, like the code downloaded to a client from web server 202, the grammars can originate at web server 202 and be downloaded to the client and/or forwarded to a remote server for speech processing. The grammars can then be stored locally thereon in a cache. Eventually, the grammars are provided to the recognition server 204 for use in recognition. The grammar element is used to specify grammars, either inline or referenced using an attribute.

[0056] Upon receipt of recognition results from recognition server 204 corresponding to the recognized speech, handwriting, gesture, image, etc., syntax of reco control 290 is provided to receive the corresponding results and associate it with the corresponding field, which can include rendering of the text therein on display 34. In the illustrated embodiment, upon completion of speech recognition with the result sent back to the client, it deactivates the reco object and associates the recognized text with the corresponding field. Portions 282 and 284 operate similarly wherein unique reco objects and grammars are called for each of the fields 252 and 254 and upon receipt of the recognized text is associated with each of the fields 252 and 254. With respect to receipt of the card number field 252, the function “handle” checks the length of the card number with respect to the card type.

Generation of Client Side Markups

[0057] As indicated above, server side plug-in module 209 outputs client side markups when a request has been made from the client device 30. In short, the server side plug-in module 209 allows the website, and thus, the application and services provided by the application to be defined or constructed. The instructions in the server side plug-in module 209 are made of a complied code. The code is run when a web request reaches the web server 202. The server side plug-in module 209 then outputs a new client side markup page that is sent to the client device 30. As is well known, this process is commonly referred to as rendering. The server side plug-in module 209 operates on “controls” that abstract and encapsulate the markup language, and thus, the code of the client side markup page. Such controls that abstract and encapsulate the markup language and operate on the webserver 202 include or are equivalent to “Servlets” or “Server-side plug ins” to name a few.

[0058] As is known, server side plug-in modules of the prior art can generate client side markup for visual rendering and interaction with the client device 30. Three different approaches are provided herein for extending the server side plug-in module 209 to include recognition and audible prompting extensions such as the exemplary client side extensions discussed above. In a first approach illustrated schematically in FIG. 7, the current, visual, server side controls (which include parameters for visual display such as location for rendering, font, foreground color, background color, etc.) are extended to include parameters or attributes for recognition and audibly prompting for related recognition. Using speech recognition and associated audible prompting by way of example, the attributes generally pertain to audible prompting parameters such as whether the prompt comprises inline text for text-to-speech conversion, playing of a prerecorded audio file (e.g. a wave file), the location of the data (text for text-to-speech conversion or a prerecorded audio file) for audible rendering, etc. For recognition, the parameters or attributes can include the location of the grammar to be used during recognition, confidence level thresholds, etc. Since the server side plug-in module 209 generates client side markup, the parameters and attributes for the controls for the server side plug-in module 209 relate to the extensions provided in the client side markup for recognition and/or audible prompting.

[0059] The controls indicated at 300A in FIG. 7 are controls, which are well-known in website application development or authoring tools such as ASP, ASP+, ASP.Net, JSP, Javabeans, or the like. Such controls are commonly formed in a library and used by controls 302 to perform a particular visual task. Library 300A includes methods for generating the desired client markup, event handlers, etc. Examples of visual controls 302 include a “Label” control that provides a selected text label on a visual display such as the label “Credit Card Submission” 304 in FIG. 5. Another example of a higher level visual control 302 is a “Textbox”, which allows data to be entered in a data field such as is indicated at 250 in FIG. 5. The existing visual controls 302 are also well-known. In the first approach for extending server side plug-in module controls to include recognition and/or audible prompting, each of the visual controls 302 would include further parameters or attributes related to recognition or audible prompting. In the case of the “label” control, which otherwise provides selected text on a visual display, further attributes may include whether an audio data file will be rendered or text-to-speech conversion will be employed as well as the location of this data file. A library 300B, similar to library 300A, includes further markup information for performing recognition and/or audible prompting. Each of the visual controls 302 is coded so as to provide this information to the controls 300B as appropriate to perform the particular task related to recognition or audible prompting.

[0060] As another example, the “Textbox” control, which generates an input field on a visual display and allows the user of the client device 30 to enter information, would also include appropriate recognition or audible prompting parameters or attributes such as the grammar to be used for recognition. It should be noted that the recognition or audible prompting parameters are optional and need not be used if recognition or audible prompting is not otherwise desired.

[0061] In general, if a control at level 302 includes parameters that pertain to visual aspects, the control will access and use the library 300A. Likewise, if the control includes parameters pertaining to recognition and/or audible prompting the control will access or use the library 300B. It should be noted that libraries 300A and 300B have been illustrated separately in order to emphasize the additional information present in library 300B and that a single library having the information of libraries 300A and 300B can be implemented.

[0062] In this approach, each of the current or prior art visual controls 302 are extended to include appropriate recognition/audible prompting attributes. The controls 302 can be formed in a library. The server side plug-in module 209 accesses the library for markup information. Execution of the controls generates a client side markup page, or a portion thereof, with the provided parameters.

[0063] In a second approach illustrated in FIG. 8, new visual, recognition/audible prompting controls 304 are provided such that the controls 304 are a subclass relative to visual controls 302, wherein recognition/audible prompting functionality or markup information is provided at controls 304. In other words, a new set of controls 304 are provided for recognition/audible prompting and include appropriate parameters or attributes to perform the desired recognition or an audible prompting related to a recognition task on the client device 30. The controls 304 use the existing visual controls 302 to the extent that visual information is rendered or obtained through a display. For instance, a control “SpeechLabel” at level 304 uses the “Label” control at level 302 to provide an audible rendering and/or visual text rendering. Likewise, a “SpeechTextbox” control would associate a grammar and related recognition resources and processing with an input field. Like the first approach, the attributes for controls 304 include where the grammar is located for recognition, the inline text for text-to-speech conversion, or the location of a prerecorded audio data file that will be rendered directly or a text file through text-to-speech conversion. The second approach is advantageous in that interactions of the recognition controls 304 with the visual controls 302 are through parameters or attributes, and thus, changes in the visual controls 302 may not require any changes in the recognition controls 304 provided the parameters or attributes interfacing between the controls 304 and 302 are still appropriate. However, with the creation of further visual controls 302, a corresponding recognition/audible prompting control at level 304 may also have to be written.

[0064] A third approach is illustrated in FIG. 9. Generally, controls 306 of the third approach are separate from the visual controls 302, but are associated selectively therewith as discussed below. In this manner, the controls 306 do not directly build upon the visual controls 302, but rather provide recognition/audible prompting enablement without having to rewrite the visual controls 302. The controls 306, like the controls 302, use a library 300. In this embodiment, library 300 includes both visual and recognition/audible prompting markup information and as such is a combination of libraries 300A and 300B of FIG. 7.

[0065] There are significant advantages to this third approach. Firstly, the visual controls 302 do not need to be changed in content. Secondly, the controls 306 can form a single module which is consistent and does not need to change according to the nature of the speech-enabled control 302. Thirdly, the process of speech enablement, that is, the explicit association of the controls 306 with the visual controls 302 is fully under the developer's control at design time, since it is an explicit and selective process. This also makes it possible for the markup language of the visual controls to receive input values from multiple sources such as through recognition provided by the markup language generated by controls 306, or through a conventional input device such as a keyboard. In short, the controls 306 can be added to an existing application authoring page of a visual authoring page of the server side plug-in module 209. The controls 306 provide a new modality of interaction (i.e. recognition and/or audible prompting) for the user of the client device 30, while reusing the visual controls' application logic and visual input/output capabilities. In view that the controls 306 can be associated with the visual controls 302 whereat the application logic can be coded, controls 306 may be hereinafter referred to as “companion controls 306” and the visual controls 302 be referred to as “primary controls 302”. It should be noted that these references are provided for purposes of distinguishing controls 302 and 306 and are not intended to be limiting. For instance, the companion controls 306 could be used to develop or author a website that does not include visual renderings such as a voice-only website. In such a case, certain application logic could be embodied in the companion control logic.

[0066] An exemplary set of companion controls 306 are further illustrated in FIG. 10. The set of companion controls 306 can be grouped as output controls 308 and input controls 310. Output controls 308 provide “prompting” client side markups, which typically involves the playing of a prerecorded audio file, or text for text-to-speech conversion, the data included in the markup directly or referenced via a URL. Although a single output control can be defined with parameters to handle all audible prompting, and thus should be considered as a further aspect of the present invention, in the exemplary embodiment, the forms or types of audible prompting in a human dialog are formed as separate controls. In particular, the output controls 308 can include a “Question” control 308A, a “Confirmation” control 308B and a “Statement” control 308C, which will be discussed in detail below. Likewise, the input controls 310 can also form or follow human dialog and include a “Answer” control 310A and a “Command” control 310B. The input controls 310 are discussed below, but generally the input controls 310 associate a grammar with expected or possible input from the user of the client device 30.

[0067] Although the question control 308A, confirmation control 308B, statement control 308C, answer control 310A, command control 310B, other controls as well as the general structure of these controls, the parameters and event handlers, are specifically discussed with respect to use as companion controls 306, it should be understood that these controls, the general structure, parameters and event handlers can be adapted to provide recognition and/or audible prompting in the other two approaches discussed above with respect to FIGS. 7 and 8. For instance, the parameter “ClientToSpeechEnable”, which comprises one exemplary mechanism to form the association between a companion control and a visual control, would not be needed when embodied in the approaches of FIGS. 7 and 8.

[0068] In a multimodal application, at least one of the output controls 308 or one of the input controls 310 is associated with a primary or visual control 302. In the embodiment illustrated, the output controls 308 and input controls 310 are arranged or organized under a “Question/Answer” (hereinafter also “QA”) control 320. QA control 320 is executed on the web server 202, which means it is defined on the application development web page held on the web server using the server-side markup formalism (ASP, JSP or the like), but is output as a different form of markup to the client device 30. Although illustrated in FIG. 10 where the QA control appears to be formed of all of the output controls 308 and the input controls 310, it should be understood that these are merely options wherein one or more may be included for a QA control.

[0069] At this point it may be helpful to explain use of the controls 308 and 310 in terms of application scenarios. Referring to FIG. 11 and in a voice-only application QA control 320 could comprise a single question control 308A and an answer control 310A. The question control 308A contains one or more prompt objects or controls 322, while the answer control 310A can define a grammar through grammar object or control 324 for recognition of the input data and related processing on that input. Line 326 represents the association of the QA control 320 with the corresponding primary control 302, if used. In a multimodal scenario, where the user of the client device 30 may touch on the visual textbox, for example with a “TapEvent”, an audible prompt may not be necessary. For example, for a primary control comprising a textbox having visual text forming an indication of what the user of client device should enter in the corresponding field, a corresponding QA control 320 may or may not have a corresponding prompt such as an audio playback or a text-to-speech conversion, but would have a grammar corresponding to the expected value for recognition, and event handlers 328 to process the input, or process other recognizer events such as no speech detected, speech not recognized, or events fired on timeouts (as illustrated in “Eventing” below).

[0070] In general, the QA control through the output controls 308 and input controls 310 and additional logic can perform one or more of the following: provide output audible prompting, collect input data, perform confidence validation of the input result, allow additional types of input such as “help” commands, or commands that allow the user of the client device to navigate to other selected areas of the website, allow confirmation of input data and control of dialog flow at the website, to name a few. In short, the QA control 320 contains all the controls related to a specific topic. In this manner, a dialog is created through use of the controls with respect to the topic in order to inform to obtain information, to confirm validity, or to repair a dialog or change the topic of conversation.

[0071] In one method of development, the application developer can define the visual layout of the application using the visual controls 302. The application developer can then define the spoken interface of the application using companion controls 306 (embodied as QA control 320, or output controls 308 and input control 310). As illustrated in FIGS. 10 and 11, each of the companion controls 306 are then linked or otherwise associated with the corresponding primary or visual control 302 to provide recognition and audible prompting. Of course if desired, the application developer can define or encode the application by switching between visual controls 302 and companion controls 306, forming the links therebetween, until the application is completely defined or encoded.

[0072] At this point, it may be helpful to provide a short description of each of the output controls 308 and input controls 310. Detailed descriptions are provided below in Appendix B.

[0073] Questions, Answers and Commands

[0074] Generally, as indicated above, the question controls 308A and answer controls 310A in a QA control 320 hold the prompt and grammar resources relevant to the primary control 302, and related binding (associating recognition results with input fields of the client-side markup page) and processing logic. The presence, or not, of question controls 308A and answer controls 310A determines whether speech output or recognition input is enabled on activation. Command controls 310B and user initiative answers are activated by specification of the Scope property on the answer controls 310A and command controls 310B.

[0075] In simple voice-only applications, a QA control 320 will typically hold one question control or object 308A and one answer control or object 310A. Although not shown in the example below, command controls 310B may also be specified, e.g. Help, Repeat, Cancel, etc., to enable user input which does not directly relate to the answering of a particular question.

[0076] A typical ‘regular’ QA control for voice-only dialog is as follows: <Speech:QA id=“QA_WhichOne” ControlsToSpeechEnable=“textBox1” runat=“server” > <Question > <prompt> Which one do you want? </prompt > </Question> <Answer > <grammar src=“whichOne.gram” /> </Answer> </Speech:QA>

[0077] (The examples provided herein are written in the ASP.Net framework by example only and should not be considered as limiting the present invention.)

[0078] In this example, the QA control can be identified by its “id”, while the association of the QA control with the desired primary or visual control is obtained through the parameter “ControlsToSpeechEnable”, which identifies one or more primary controls by their respective identifiers. If desired, other well-known techniques can be used to form the association. For instance, direct, implicit associations are available through the first and second approaches described above, or separate tables can be created used to maintain the associations. The parameter “runat” instructs the web server that this code should be executed at the webserver 202 to generate the correct markup.

[0079] A QA control might also hold only a statement control 308C, in which case it is a prompt-only control without active grammars (e.g. for a welcome prompt). Similarly a QA control might hold only an answer control 310A, in which case it may be a multimodal control, whose answer control 310A activates its grammars directly as the result of an event from the GUI, or a scoped mechanism (discussed below) for user initiative.

[0080] It should also be noted that a QA control 320 may also hold multiple output controls 308 and input controls 310 such as multiple question controls 308A and multiple answers controls 310A. This allows an author to describe interactional flow about the same entity within the same QA control. This is particularly useful for more complex voice-only dialogs. So a mini-dialog which may involve different kinds of question and answer (e.g. asking, confirming, giving help, etc.), can be specified within the wrapper of the QA control associated with the visual control which represents the dialog entity. A complex QA control is illustrated in FIG. 11.

[0081] The foregoing represent the main features of the QA control. Each feature is described from a functional perspective below.

[0082] Answer Control

[0083] The answer control 310A abstracts the notion of grammars, binding and other recognition processing into a single object or control. Answer controls 310A can be used to specify a set of possible grammars relevant to a question, along with binding declarations and relevant scripts. Answer controls for multimodal applications such as “Tap-and-Talk” are activated and deactivated by GUI browser events. The following example illustrates an answer control 310A used in a multimodal application to select a departure city on the “mouseDown” event of the textbox “txtDepCity”, and write its value into the primary textbox control: <Speech:QA controlsToSpeechEnable=“txtDepCity” runat=“server” > <Answer id=“AnsDepCity” StartEvent=“onMouseDown” StopEvent=“onMouseUp” /> <grammar src=“/grammars/depCities.gram”/> <bind value=“//sml/DepCity” targetElement=“txtCity” /> </Answer> </Speech:QA>

[0084] Typical answer controls 310A in voice-only applications are activated directly by question controls 308A as described below.

[0085] The answer control further includes a mechanism to associate a received result with the primary controls. Herein, binding places the values in the primary controls; however, in another embodiment the association mechanism may allow the primary control to look at or otherwise access the recognized results.

[0086] Question Control

[0087] Question controls 308A abstracts the notion of the prompt tags (Appendix A) into an object which contains a selection of possible prompts and the answer controls 310A which are considered responses to the question. Each question control 308A is able to specify which answer control 310A it activates on its execution. This permits appropriate response grammars to be bundled into answer controls 310A, which reflect relevant question controls 308A.

[0088] The following question control 308A might be used in a voice-only application to ask for a Departure City: <Speech:QA id=“QADepCity” controlsToSpeechEnable=“txtDepCity” runat=“server” > <Question id=“Q1” Answers=“AnsDepCity” > <prompt> Please give me the departure city. </prompt > </Question> <Answer id=“AnsDepCity” . . . /> </Speech:QA>

[0089] In the example below, different prompts can be called depending on an internal condition of the question control 308A. The ability to specify conditional tests on the prompts inside a question control 308A means that changes in wording can be accommodated within the same functional unit of the question control 308A. <Speech:QA id=“QADepCity” controlsToSpeechEnable=“txtDepCity” runat=“server” > <Question id=“Q1” Answers=“AnsDepCity” > <prompt count=“1”> Now I need to get the departure city. Where would you like to fly from? </prompt> <prompt count=“2”> Which departure city? </prompt> </Question> <Answer id=“AnsDepCity” . . . /> </Speech:QA>

[0090] Conditional QA Control

[0091] The following example illustrates how to determine whether or not to activate a QA control based upon information known to the application. The example is a portion of a survey application. The survey is gathering information from employees regarding the mode of transportation they use to get to work.

[0092] The portion of the survey first asks whether or not the user rides the bus to work. If the answer is:

[0093] Yes, the next question asks how many days last week the users rode the bus.

[0094] No, the “number of days rode the bus” question is bypassed. <asp:Label id=“lblDisplay1” text=“Do you ride the bus to work?” runat=“server”/ > <asp:DropDownList id=“1stRodeBusYN” runat=“server”> <asp:ListItem selected=“true”>No</asp:ListItem> <asp:ListItem>Yes</asp:ListItem> </asp:DropDownList > <Speech:QA id=“QA_RideBus ControlsToSpeechEnable=“1stRodeBusYN” runat=“server” > <SDN:Question id=“Q_RideBus” > <prompt bargeIn=“False”> Do you ride the bus to work? </prompt> </SDN:Question> <SDN:Answer id=“A_RideBus” autobind=“False ” StartEvent=“onMouseDown” StopEvent=“onMouseUp” runat=“server” onClientReco=“ProcessRideBusAnswer” <grammar src=“. . .” /> <--! “yes/no” grammar --> </SDN:Answer> </Speech:QA> <asp Label id=“lblDisplay2” enabled=“False” text=“How many days last week did you ride the bus to work?” runat=“server”/> <asp:DropDownList id=“1stDaysRodeBus” enabled=“False” runat =“server”> <asp:ListItem selected=“true” >0</asp:ListItem> <asp:ListItem>1</asp:ListItem> <asp:ListItem>2</asp:ListItem> <asp:ListItem>3</asp:ListItem> <asp:ListItem>4</asp:ListItem> <asp:ListItem>5</asp:ListItem> <asp:ListItem>6</asp:ListItem> <asp:ListItem>7</asp:ListItem> </asp:DropDownList> <Speech:QA id=“QA_DaysRodeBus” ControlsToSpeechEnable=“1stDaysRodeBus” ClientTest=“RideBusCheck” runat=“server” > <Question id=“Q_DaysRodeBus” > <prompt bargeIn=“False”> How many days last week did you ride the bus to work? </prompt> </SDN:Question> <SDN:Answer id=“A_DaysRodeBus” autobind=“False” StartEvent=“onMouseDown” StopEvent =“onMouseUp” runat=“server” onClientReco=“ProcessDaysRodeBusAnswer” <grammar src=“. . .” />  <--! “numbers” grammar --> </SDN:Answer> </Speech:QA> <script language=“jscript”> function ProcessRideBusAnswer ( ) { <--! using SML attribute of the Event object, determine yes or no answer --> <--! then select the appropriate item in the dropdown listbox --> <--! and enable the next label and dropdown listbox if answer is “yes” --> if <--! Answer is “yes” --> { 1stRodeBusYN.selectedIndex=2 lblDisplay2.enabled=“true” 1stDaysRodeBus.enabled=“true” } { function RideBusCheck ( ) { if 1stRodeBusYN.selectedIndex=“1” <--! this is no --> then return “False” endif } function ProcessDaysRodeBusAnswer () { <--! case statement to select proper dropdown item --> } </script>

[0095] In the example provided above, the QA control “QA_DaysRodeBus” is executed based on a boolean parameter “ClientTest”, which in this example, is set based on the function RideBusCheck( ) If the function returns a false condition, the QA control is not activated, whereas if a true condition is returned the QA control is activated. The use of an activation mechanism allows increased flexibility and improved dialog flow in the client side markup page produced. As indicated in Appendix B many of the controls and objects include an activation mechanism.

[0096] Command Control

[0097] Command controls 310B are user utterances common in voice-only dialogs which typically have little semantic import in terms of the question asked, but rather seek assistance or effect navigation, e.g. help, cancel, repeat, etc. The Command control 310B within a QA control 306 can be used to specify not only the grammar and associated processing on recognition (rather like an answer control 310A without binding of the result to an input field), but also a ‘scope’ of context and a type. This allows for the authoring of both global and context-sensitive behavior on the client side markup.

[0098] As appreciated by those skilled in the art from the foregoing description, controls 306 can be organized in a tree structure similar to that used in visual controls 302. Since each of the controls 306 are also associated with selected visual controls 302, the organization of the controls 306 can be related to the structure of the controls 302.

[0099] The QA controls 302 may be used to speech-enable both atomic controls (textbox, label, etc.) and container controls (form, panel, etc.) This provides a way of scoping behaviour and of obtaining modularity of subdialog controls. For example, the scope will allow the user of the client device to navigate to other portions of the client side markup page without completing a dialog.

[0100] In one embodiment, “Scope” is determined as a node of the primary controls tree. The following is an example “help” command, scoped at the level of the “Pnl1” container control, which contains two textboxes. <asp:panel id=“Pnl1” . . .> <asp:textbox id=“tb1” . . . /> <asp:textbox id=“tb2” . . . /> </asp:panel> <Speech:QA ... > <Command id=“HelpCmd1” scope=“Pnl1” type=“help” onClientReco=“GlobalGiveHelp ( ) ” > <Grammar src=“grammars/help.gram” /> </Command> </Speech:QA> <script> function GlobalGiveHelp ( ) { . . . } </script>

[0101] As specified, the “help” grammar will be active in every QA control relating to “Pnl1” and its contents. The GlobalGiveHelp subroutine will execute every time “help” is recognized. To override this and achieve context-sensitive behavior, the same typed command can be scoped to the required level of context: <Speech:QA . . . > <Command id=“HelpCmd2” scope=“Tb2” type=“help” onClientReco=“SpecialGiveHelp ( )” > <Grammar src=“grammars/help.gram” /> </Command> </Speech:QA> <script> function SpecialGiveHelp ( ) { . . . } </script>

[0102] Confirmation Control

[0103] The QA control 320 can also include a method for simplifying the authoring of common confirmation subdialogs. The following QA control exemplifies a typical subdialog which asks and then confirms a value: <Speech:QA id=“qaDepCity” controlsToSpeechEnable=“txtDepCity” runat=“server” > <!-- asking for a value --> <Question id=“AskDepCity” type=“ask” Answers=“AnsDepCity” > <prompt> Which city? </prompt> </Question> <Answer id=“AnsDepCity” confirmThreshold=“60” > <grammar src=“grammars/depCity.gram” /> </Answer> <!-- confirming the value --> <Confirm id=“ConfirmDepCity” Answers=“AnsConfDepCity” > <prompt> Did you say <value targetElement=“txtDepCity/Text”>? </prompt> </Confirm> <Answer id=“AnsConfDepCity” > <grammar src=“grammars/YesNoDepCity.gram” /> </Answer> </Speech:QA>

[0104] In this example, a user response to ‘which city?’ which matches the AnsDepCity grammar but whose confidence level does not exceed the confirmThreshold value will trigger the confirm control 308. More flexible methods of confirmation available to the author include mechanisms using multiple question controls and multiple answer controls.

[0105] In a further embodiment, additional input controls related to the confirmation control include an accept control, a deny control and a correct control. Each of these controls could be activated (in a manner similar to the other controls) by the corresponding confirmation control and include grammars to accept, deny or correct results, respectively. For instance, users are likely to deny be saying “no”, to accept by saying “yes” or “yes+current value” (e.g., “Do you want to go to Seattle?” “Yes, to Seattle”), to correct by saying “no”+new value (e.g., “Do you want to go to Seattle” “No, Pittsburgh”).

[0106] Statement Control

[0107] The statement control allows the application developer to provide an output upon execution of the client side markup when a response is not required from the user of the client device 30. An example could be a “Welcome” prompt played at the beginning of execution of a client side markup page.

[0108] An attribute can be provided in the statement control to distinguish different types of information to be provided to the user of the client device. For instance, attributes can be provided to denote a warning message or a help message. These types could have different built-in properties such as different voices. If desired, different forms of statement controls can be provided, i.e. a help control, warning control, etc. Whether provided as separate controls or attributes of the statement control, the different types of statements have different roles in the dialog created, but share the fundamental role of providing information to the user of the client device without expecting an answer back.

[0109] Eventing

[0110] Event handlers as indicated in FIG. 11 are provided in the QA control 320, the output controls 308 and the input controls 310 for actions/inactions of the user of the client device 30 and for operation of the recognition server 204 to name a few, other events are specified in Appendix B. For instance, mumbling, where the speech recognizer detects that the user has spoken but is unable to recognize the words and silence, where speech is not detected at all, are specified in the QA control 320. These events reference client-side script functions defined by the author. In a multimodal application specified earlier, a simple mumble handler that puts an error message in the text box could be written as follows: <Speech:QA controlsToSpeechEnable=“txtDepCit y” onClientNoReco=“OnMumble ( )” runat=“server” > <Answer id=“AnsDepCity” StartEvent=“onMouseDown” StopEvent=“onMouseUp” > <grammar src=“/grammars/depCities.gram”/> <bind value=“//sml/DepCity” targetElement=“txtCity” /> </Answer> </Speech:QA> <script> function OnMumble ( ) { txtDepCity.value=“. . . recognition error . . .”; } </script>

[0111] Control Execution Algorithm

[0112] In one embodiment, a client-side script or module (herein referred to as “RunSpeech”) is provided to the client device. The purpose of this script is to execute dialog flow via logic, which is specified in the script when executed on the client device 30, i.e. when the markup pertaining to the controls is activated for execution on the client due to values contained therein. The script allows multiple dialog turns between page requests, and therefore, is particularly helpful for control of voice-only dialogs such as through telephony browser 216. The client-side script RunSpeech is executed in a loop manner on the client device 30 until a completed form in submitted, or a new page is otherwise requested from the client device 30.

[0113] It should be noted that in one embodiment, the controls can activate each other (e.g. question control activating a selected answer control) due to values when executed on the client. However, in a further embodiment, the controls can “activate” each other in order to generate appropriate markup, in which case server-side processing may be implemented.

[0114] Generally, in one embodiment, the algorithm generates a dialog turn by outputting speech and recognizing user input. The overall logic of the algorithm is as follows for a voice-only scenario:

[0115] 1. Find next active output companion control;

[0116] 2. If it is a statement, play the statement and go back to 1; If it is a question or a confirm go to 3;

[0117] 3. Collect expected answers;

[0118] 4. Collect commands;

[0119] 5. Play output control and listen in for input;

[0120] 6. Activate recognized Answer or Command object or, issue an event if none is recognized;

[0121] 7. Go back to 1.

[0122] In the multimodal case, the logic is simplified to the following algorithm:

[0123] 1. Wait for triggering event—i.e., user tapping on a control;

[0124] 2. Collect expected answers;

[0125] 3. Listen in for input;

[0126] 4. Activate recognized Answer object or, if none, throw event;

[0127] 5. Go back to 1.

[0128] The algorithm is relatively simple because, as noted above, controls contain built-in information about when they can be activated. The algorithm also makes use of the role of the controls in the dialogue. For example statements are played immediately, while questions and confirmations are only played once the expected answers have been collected.

[0129] In a further embodiment, implicit confirmation can be provided whereby the system confirms a piece of information and asks a question at the same time. For example the system could confirm the arrival city of a flight and ask for the travel date in one utterance: “When do you want to go to Seattle?” (i.e. asking ‘when’ and implicitly confirming ‘destination: Seattle’). If the user gives a date then the city is considered implicitly accepted since, if the city was wrong, users would have immediately challenged it. In this scenario, it becomes clear that the knowledge of what a user is trying to achieve is vitally important: are they answering the question, or are they correcting the value, or are they asking for help? By using the role of the user input in the dialogue the system can know when to implicitly accept a value.

[0130] In summary, a dialog is created due to the role of the control in the dialog and the relationship with other controls, wherein the algorithm executes the controls and thus manages the dialog. Each control contains information based on its type which is used by the execution algorithm to select (i.e. make active for execution) a given control according to whether or not it serves a useful purpose at that point in the dialog on the client. For example, confirmation controls are only active when there is a value to confirm and the system does not have sufficient confidence in that value to proceed. In a further implementation, most of these built-in pieces of information can be overridden or otherwise adapted by application developers.

[0131] The following table summarizes the controls, their corresponding role in the dialog and the relationship with other controls. Relationship with other Control Role in dialogue controls Statement output: present (none) information to users Question output: ask selects expected Answers question as a response Confirmation output: confirm a selects potential input value obtained from controls as a response, the user typically Accept, Deny, Correct Answer input: provide an selected by answer to a Question/Confirmation question Command input: seek to scoped to other controls repair a dialog, or change the topic of conversation Accept input: confirm a selected by a value in response confirmation to a confirmation Deny input: deny a value selected by a in response to a confirmation confirmation Correct input: correct a selected by a value in response confirmation to a confirmation QA (wrapper: contains all the controls related to a specific topic)

[0132] The use of these controls may be explained with an illustration of a simple human/computer dialog. In the dialog below, each dialog turn on the part of the System or the User is characterized according to the control (indicated in parentheses) which reflects its purpose in the dialog.

[0133] 1. System (Statement): “Welcome to the travel booking service”.

[0134] 2. System (Question): “Where would you like to go?”

[0135] 3. User (Answer): “San Francisco.”

[0136] 4. System (Confirmation): “Did you say Seattle?”

[0137] 5. User (Deny): “No.”

[0138] 6. System (Question): “Where would you like to go?”

[0139] 7. User (Answer): “San Francisco.”

[0140] 8. System (Confirmation): “Did you say Seattle?”

[0141] 9. User (Correct): “I said San Francisco.”

[0142] 10. System (Confirmation): “Did you say San Francisco?”

[0143] 11. User (Correct): “Yes.”

[0144] 12. System (Question): “When would you like to leave?”

[0145] 13. User (Command): “Help.”

[0146] Turn 1 is a statement on the part of the System. Since a statement control activates no answer controls in response, the system does not expect input. The system goes on to activate a question control at turn 2. This in turn activates a set of possible answer controls, including one which holds a grammar containing the cities available through the service, including “San Francisco”, “Seattle”, etc., which permits the user to provide such a city in turn 3.

[0147] The user's turn 3 is misrecognized by the system. Although the system believes it has a value from an answer control for the city, its confidence in that value is low (rightly so, since it has recognized incorrectly). This low confidence value in a just-received answer control is sufficient information for RunSpeech to trigger a confirmation control on the part of the system, as generated at turn 4. The confirmation control in turn activates a deny control, a correct control and an accept control and makes their respective grammars available to recognize the user's next turn. User turns 5, 9 and 11 illustrate example responses for these controls. Turn 5 of the user simply denies the value “no”. This has the effect of removing the value from the system, so the next action of RunSpeech is to ask the question again to re-obtain the value (turn 6).

[0148] Turns 7 and 8 return us to a confirmation control as with 3 and 4.

[0149] User turn 9 is a correct control, which has again been activated as a possible response to the confirmation control. A correct control not only denies the value undergoing confirmation, it also provides a new value. So user turn 9 is recognized by the system as a correct control with a new value which, correctly this time, is recognized as “San Francisco”.

[0150] The system's confidence in the new value is low, however, and yet another confirmation control is generated at turn 10. This in turn activates accept, deny and correct controls in response, and user turn 11 (“Yes” matches an accept control grammar. The recognition of the accept control has the effect of ‘grounding’ the system's belief in the value which it is trying to obtain, and so RunSpeech is now able to select other empty values to obtain. In turn 12, a new question control is output which asks for a date value. The user's response this time (turn 13) is a command: “help”. Command controls are typically activated in global fashion, that is, independently of the different question controls and confirmation controls on the part of the system. In this way the user is able to ask for help at any time, as he does in turn 13. Command controls may also be more sensitively enabled by a mechanism that scopes their activation according to which part of the primary control structure is being talked about.

[0151] Referring back to the algorithm, in one exemplary embodiment, the client-side script RunSpeech examines the values inside each of the primary controls and an attribute of the QA control, and any selection test of the QA controls on the current page, and selects a single QA control for execution. For example, within the selected QA control, a single question and its corresponding prompt are selected for output, and then a grammar is activated related to typical answers to the corresponding question. Additional grammars may also be activated, in parallel, allowing other commands (or other answers), which are indicated as being allowable. Assuming recognition has been made and any further processing on the input data is complete, the client-side script RunSpeech will begin again to ascertain which QA control should be executed next. An exemplary implementation and algorithm of RunSpeech is provided in Appendix B.

[0152] It should be noted that the use of the controls and the RunSpeech algorithm or module is not limited to the client/server application described above, but rather can be adapted for use with other application abstractions. For instance, an application such as VoiceXML, which runs only on the client device 30, could conceivably include further elements or controls such as question and answer provided above as part of the VoiceXML browser and operating in the same manner. In this case the mechanisms of the RunSpeech algorithm described above could be executed by default by the browser without the necessity for extra script. Similarly, other platforms such as finite state machines can be adapted to include the controls and RunSpeech algorithm or module herein described.

[0153] Synchronization

[0154] As noted above, the companion controls 306 are associated with the primary controls 302 (the existing controls on the page). As such the companion controls 306 can re-use the business logic and presentation capabilities of the primary controls 302. This is done in two ways: storing values in the primary controls 302 and notifying the primary controls of the changes 302.

[0155] The companion controls 306 synchronize or associates their values with the primary controls 302 via the mechanism called binding. Binding puts values retrieved from recognizer into the primary controls 302, for example putting text into a textbox, herein exemplified with the answer control. Since primary controls 302 are responsible for visual presentation, this provides visual feedback to the users in multimodal scenarios.

[0156] The companion controls 306 also offer a mechanism to notify the primary controls 302 that they have received an input via the recognizer. This allows the primary controls 302 to take actions, such as invoking the business logic. (Since the notification amounts to a commitment of the companion controls 306 to the values which they write into the primary controls 302, the implementation provides a mechanism to control this notification with a fine degree of control. This control is provided by the RejectThreshold and ConfirmThreshold properties on the answer control, which specify numerical acoustic confidence values below which the system should respectively reject or attempt to confirm a value.)

[0157] Although the present invention has been described with reference to preferred embodiments, workers skilled in the art will recognize that changes may be made in form and detail without departing from the spirit and scope of the invention. 

What is claimed is:
 1. A computer readable medium having instructions, which when executed on a computer generate client side markup for a client in a client/server system, the instructions comprising: a set of controls for defining a dialog, the controls comprising at least a question control for generating markup related to audible prompting of a question, and an answer control for generating markup related to a grammar for recognition, each of the controls having an attribute to indicate whether the associated control is available for activation; and a module, when executed on the client, creates a dialog as a function of which controls are activated.
 2. The computer readable medium of claim 1 wherein the question control activates the answer control.
 3. The computer readable medium of claim 2 wherein the controls comprise: a command control for generating markup related to a grammar for one of navigation in the markup, help with a task, and repeating an audible prompt.
 4. The computer readable medium of claim 3 wherein the controls comprise: a confirmation control for generating markup related to confirming that a recognized result is correct.
 5. The computer readable medium of claim 4 wherein the confirmation control is activated as a function of a confidence level or a received result.
 6. The computer readable medium of claim 5 wherein the answer control includes an attribute related to a confidence level.
 7. The computer readable medium of claim 5 wherein the confirmation control activates an accept control to accept the recognized result.
 8. The computer readable medium of claim 5 wherein the confirmation control activates a deny control to deny the recognized result.
 9. The computer readable medium of claim 5 wherein the confirmation control activates a correct control to correct the recognized result.
 10. The computer readable medium of claim 1 wherein the question control activates the answer control.
 11. The computer readable medium of claim 10 wherein the answer control includes a mechanism to associate a received result with one of the first set of controls.
 12. The computer readable medium of claim 11 wherein mechanism includes binding the recognition value.
 13. The computer readable medium of claim 12 wherein the mechanism includes issuing an event related to operation of binding.
 14. The computer readable medium of claim 1 and further comprising a second set of controls for generating markup related to visual rendering on a client, wherein each control of the first-mentioned set of controls is associated with at least one of the controls of the second set of controls.
 15. A computer readable medium having instructions, which when executed on a computer define a dialog, the instructions comprising: a set of controls for defining a dialog, the controls comprising at least a question control for generating an audible prompt of a question, and an answer control using a grammar for recognition, each of the controls having an attribute to indicate whether the associated control is available for activation; and a module, which when executed on the computer, creates a dialog as a function of which controls are activated.
 16. The computer readable medium of claim 15 wherein the question control activates the answer control.
 17. The computer readable medium of claim 16 wherein the controls comprise: a command control for generating code related to a grammar for one of navigation in the markup, help with a task, and repeating an audible prompt.
 18. The computer readable medium of claim 17 wherein the controls comprise: a confirmation control for generating code related to confirming that a recognized result is correct.
 19. The computer readable medium of claim 18 wherein the confirmation control is activated as a function of a confidence level or a received result.
 20. The computer readable medium of claim 19 wherein the answer control includes an attribute related to a confidence level.
 21. The computer readable medium of claim 19 wherein the confirmation control activates an accept control to accept the recognized result.
 22. The computer readable medium of claim 19 wherein the confirmation control activates a deny control to deny the recognized result.
 23. The computer readable medium of claim 19 wherein the confirmation control activates a correct control to correct the recognized result.
 24. The computer readable medium of claim 15 wherein the question control activates the answer control.
 25. The computer readable medium of claim 24 wherein the answer control includes a mechanism to associate a received result with one of the first set of controls.
 26. The computer readable medium of claim 25 wherein mechanism includes binding the recognition value.
 27. The computer readable medium of claim 26 wherein the mechanism includes issuing an event related to operation of binding.
 28. The computer readable medium of claim 15 and further comprising a second set of controls related to visual rendering, wherein each control of the first-mentioned set of controls is associated with at least one of the controls of the second set of controls.
 29. A computer implemented method for performing recognition and/or audible prompting on a computer, the method comprising: defining a dialog with a set of controls, the set of controls comprising at least a question control for generating an audible prompt of a question, and an answer control using a grammar for recognition, each of the controls having an attribute to indicate whether the associated control is available for activation; and creating a dialog as a function of execution of code related to which controls are activated.
 30. The computer implemented method of claim 29 wherein creating the dialog includes activation of the answer control through the question control.
 31. The computer implemented method of claim 30 wherein the set of controls include a command control for generating code related to a grammar for one of navigation in the markup, help with a task, and repeating an audible prompt.
 32. The computer implemented method of claim 31 wherein the set of controls include a confirmation control for generating code related to confirming that a recognized result is correct.
 33. The computer implemented method of claim 32 wherein creating the dialog includes activation of the confirmation control as a function of a confidence level or a received result. 